package cn.batch.daemon.service;

import java.util.Date;
import java.util.List;

import cn.batch.daemon.bean.ApplicantionInfo;
import cn.batch.daemon.hibernate.bean.BatchRiskData;
import cn.batch.daemon.hibernate.bean.PbocSummary;

/**
 * @author xihn
 * 保存人行征信数据
 *
 */

public interface RiskWarningService {
	//查询人行征信信息
	public List<PbocSummary> queryByExample(PbocSummary bo);
	
	//保存申请信息
	public void save(ApplicantionInfo app);
	
	/**
	 * 查询决策数据
	 * @param peList
	 */
	public List<ApplicantionInfo> queryApplicantionInfo(ApplicantionInfo ai);
	
	/**
	 * 删除决策数据
	 */
	public void deleteApplicantionInfo(ApplicantionInfo ai);
	/**
	 * 批量删除决策数据
	 */
	public void deleteApplicantionInfo(List<ApplicantionInfo> entities);
	
	//风险预警待处理数据
	public void saveBatchRiskData(BatchRiskData batchRiskData);
	
	/**
	 * 查询风险预警待处理数据
	 * @param peList
	 */
	public List<BatchRiskData> queryBatchRiskData(BatchRiskData batchRiskData);
	
	/**
	 * 删除风险预警待处理数据
	 */
	public void deleteBatchRiskData(BatchRiskData batchRiskData);
	
	/**
	 * 更新风险预警待处理数据
	 */
	public void updateBatchRiskData(BatchRiskData batchRiskData);

	/**
	 * 批量删除。
	 * @param batchDate
	 * @param value
	 */
	public void deleteAppInfoByBatchNoAndType(String batchDate, String value);

	public void saveAll(List<ApplicantionInfo> appInfoCache);
	
	//查询人行征信信息
	public Date queryBybatchRiskData(PbocSummary bo);
	
	//按批次号删除数据
	public void deleteBatchRiskDataByBachNo(String date);
	
}
